//
//  Colormap.h
//  V3d_Cocoa
//
//  Created by Y my on 11-3-24.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//


#import "V3d_basicdatatype.h"


typedef enum tagImageDisplayColorType
{	
	colorRGB,
	colorGray, 
	colorRedOnly, 
	colorRed2Gray,
	colorGreenOnly,
	colorGreen2Gray, 
	colorBlueOnly,
	colorBlue2Gray, 
	colorRG, 
	colorPseudoMaskColor, 
	colorArnimFlyBrainColor, 
	colorHanchuanFlyBrainColor,
	colorUnknown
}ImageDisplayColorType;

@interface ColorMap : NSObject {
	unsigned char **map2d;
	unsigned char *map1d;
	int len; //the second dim is always 3
	ImageDisplayColorType ctype;
}

@property int len;
@property unsigned char **map2d;
@property unsigned char *map1d;

- (id)initWithImageDisplayColorType:(ImageDisplayColorType)c;
- (id)initWithImageDisplayColorType:(ImageDisplayColorType)c length:(NSUInteger)l;
- (void)_initialize:(ImageDisplayColorType)c length:(NSUInteger)l;
@end
